var fs = require("fs");
var path = require("path");

function updteLiveConfig(config) {
    var filePath = path.join(__dirname, 'public/qiniuConfig.json');

    console.log(config);

    fs.writeFile(filePath, JSON.stringify(config, null, 4), 'utf8', (err) => {
        if (err) throw err;
        console.log(3333);
    });
}

exports.updteLiveConfig = updteLiveConfig;